package com.spring.shopping.service;

import com.spring.shopping.entity.Order;
import com.spring.shopping.entity.OrderItem;
import com.spring.shopping.entity.CartItem;

import java.util.List;



/*
 * @Coding By ZTK:
 */


public interface OrderService {
    Order createOrder(Integer userId, List<CartItem> cartItems,
                      String receiverName, String receiverAddress, String receiverPhone);
    Order getOrderById(Integer orderId);
    void updateOrderStatus(Integer orderId, String status);

    List<Order> getOrdersByUserId(Integer userId, int offset, int size);
    int countOrdersByUserId(Integer userId);
}
